/* 欢迎界面.css */
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
}

.container {
    text-align: center;
    position: relative;
    padding: 2rem;
}

.title {
    font-size: 3.5rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    margin: 0;
    animation: titleEntrance 1s ease-out;
}

.title span {
    display: inline-block;
    color: #ff6b6b;
    transform: skew(-10deg);
    padding: 0 15px;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
}

.subtitle {
    font-size: 1.2rem;
    color: #ffe6e6;
    margin: 1rem 0 2rem;
    letter-spacing: 1px;
    animation: subtitleEntrance 1.2s ease-out 0.3s backwards;
}

.decorative-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
}

.circle {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    opacity: 0.7;
    animation: float 4s ease-in-out infinite;
}

.pink { background: #ff6b6b; left: 10%; top: 20%; }
.yellow { background: #ffd93d; left: 80%; top: 30%; animation-delay: 1s; }
.blue { background: #6c5ce7; left: 40%; top: 60%; animation-delay: 2s; }

.star {
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: twinkle 1.5s ease-in-out infinite;
}

.star1 { left: 25%; top: 15%; }
.star2 { left: 75%; top: 45%; animation-delay: 0.5s; }
.star3 { left: 50%; top: 75%; animation-delay: 1s; }

.floating-button {
    position: relative;
    z-index: 2;
    animation: buttonFloat 3s ease-in-out infinite;
}

#enterBtn {
    padding: 15px 40px;
    font-size: 1.1rem;
    color: #ff6b6b;
    background: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#enterBtn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-30deg);
    transition: left 0.5s;
}

#enterBtn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

#enterBtn:hover::before {
    left: 150%;
}

@keyframes titleEntrance {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes subtitleEntrance {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-30px); }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes buttonFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.loading-spinner {
    border: 3px solid rgba(255,107,107,0.3);
    border-top: 3px solid #ff6b6b;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,107,107,0.4);
    transform: scale(0);
    animation: rippleEffect 0.6s linear;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(2);
        opacity: 0;
    }
}